using System;
using System.Web.Caching;
using System.Web;


namespace NewDDSys.Utility
{
    public sealed class CacheAccess
    {
        public static void SaveToCache(string cachekey, object cacheobject, CacheDependency dependency)
        {
            Cache cache =  HttpRuntime.Cache;
            cache.Insert(cachekey, cacheobject, dependency);
        }
        public static object GetFromCache(string cachekey)
        {
            Cache cache = HttpRuntime.Cache;
            return cache[cachekey];
        }
    }
}
